import request from '@/utils/request'
const UpmsQuartzJobLogService = {
  state: {},

  mutations: {},

  actions: {
    /**
     * 定时任务日志分页
     */
    upmsQuartzJobLogPage({ commit }, params) {
      return new Promise((resolve, reject) => {
        request.get('upmsQuartzJobLog/page', params).then(response => {
          resolve(response)
        }).catch(error => {
          reject(error)
        })
      })
    },

    /**
     * 定时任务日志删除
     */
    upmsQuartzJobLogRemove({ commit }, params) {
      return new Promise((resolve, reject) => {
        request.post('upmsQuartzJobLog/remove', params).then(response => {
          resolve(response)
        }).catch(error => {
          reject(error)
        })
      })
    },
    /**
     * 清空定时任务日志
     */
    upmsQuartzJobLogClear({ commit }) {
      return new Promise((resolve, reject) => {
        request.post('upmsQuartzJobLog/clear').then(response => {
          resolve(response)
        }).catch(error => {
          reject(error)
        })
      })
    }
  }
}

export default UpmsQuartzJobLogService
